1. Run an AppleScript execution program, such as Quickeys, Script Editor, or the regular version of DeBabelizer.
2. Give it a properly formatted AppleScript with DeBabelizer Lite commands.
3. DeBabelizer Lite will receive them and execute them.
AppleScript Support in DeBabelizer Lite;
DeBabelizer Lite's main functions can be controlled from another application via AppleScript.
The commands (in bold) are listed below. Each command is followed by its parameters.
NOTE: the ellipsis (3 dots at the end of some commands) is created by entering Option semicolon.
Open
- pathname of image file to open into a window.
[NOTE: It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files…". If not set this way, the opened file will be translated instead of opened.]
Save As…
- pathname of image file to which the frontmost image window will be saved.
- save format name (must match one of the popup menu formats EXACTLY).
If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
- save # colors (must match one of the popup menu color entries EXACTLY).
- aspect ratio (must match one of the popup menu aspect entries EXACTLY).
Close
- none. Will close frontmost image window.
Close All
- none. Will close all image windows.
Slideshow Folder…
- pathname to the folder of images to be displayed.
Translate Windows…
- pathname of folder to which the image windows will be saved.
- save format name (must match one of the popup menu formats EXACTLY).
If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
- save # colors (must match one of the popup menu color entries EXACTLY).
- aspect ratio (must match one of the popup menu aspect entries EXACTLY).
- naming method will be whatever is currently set in the program.
Translate Folder…
- pathname to the folder of images to be translated.
- pathname of folder to which the image windows will be saved.
- save format name (must match one of the popup menu formats EXACTLY).
If there is a subformat, use a colon to separate the two names; e.g. "Targa:Compressed".
- save # colors (must match one of the popup menu color entries EXACTLY).
- aspect ratio (must match one of the popup menu aspect entries EXACTLY).
- naming method will be whatever is currently set in the program.
Copy
- none. Current window contents will be copied into the clipboard.
Paste
- none. A new window will be opened, and the contents of the clipboard will be pasted into it.
Tile128x96
- none. Set window mode to Tile mode.
Tile4x3
- none. Set window mode to Tile mode.
Stagger
- none. Set window mode to Stagger mode.
Single
- none. Set window mode to Single mode.
Quit
- none. The program will quit.
NOTES:
- It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files…". If not set this way, the opened file will be translated instead of opened.
- Reader and writer preferences can't be changed via AppleScript. If more control is needed,
purchase DeBabelizer, from which all preferences can be controlled.
- Photoshop plugins can't be executed via AppleScript. If plug-ins must be executed in this
manner, purchase DeBabelizer, from which all plug-ins can be remotely executed.
Setting plug-in parameters via AppleScript is impossible without DeBabelizer's ability
to export an AppleScript containing a plug-in's parameters.
Examples:
OPEN an image file:
tell application "DeBabelizer Lite®"
open file "Imagesx:PICT,SCRN files:364"
end tell
[NOTE: It is very important, when doing an "open file" AppleScript command, to set the File:Preferences:Drag & Drop option to "Slideshow Dropped Files…". If not set this way, the opened file will be translated instead of opened.]
PRINT an image file:
tell application "DeBabelizer Lite®"
print file "Imagesx:PICT,SCRN files:364"
end tell
NOTE: unfortunately, it brings up the Page Setup and Print dialogs which the user must then handle.